package com.nuanqian.springbootdubboclient.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.nuanqian.springbootdubboapi.service.MybatisTest;
import org.springframework.web.bind.annotation.*;

/**
 * @author 李蒙
 * @date 2020/6/17 16:51
 */
@RestController
@RequestMapping("/mb")
public class MybatisTestController {
    @Reference(version = "1.0.0",group = "1")
    private MybatisTest mybatisTest;


    @GetMapping("select/{id}")
    @ResponseBody
    public Object select(@PathVariable("id") Long id) {
        return  mybatisTest.selectById(id.toString());
    }

}
